﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="R_BrochureMergeOutput.aspx.cs" Inherits="ConsolidationTool.WebParts.Layouts.CReport.Brochure.R_BrochureMergeOutput" DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register TagName="EntitySelector" TagPrefix="RE" Src="~/_controltemplates/ConsolidationTool.WebParts/CommonEntitySelector.ascx" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <script type="text/javascript">
        function BrochureTypeChanged(s) {
            var sType = s.value;
            $("#art_rtBox input[type=checkbox]").attr("checked", true);
            if (sType == "MergeBrochure_C") {
                $("#art_rtBox input[type=checkbox]:eq(0)").attr("checked", false);
                $("#art_rtBox input[type=checkbox]:eq(3)").attr("checked", false);
                $("#art_rtBox input[type=checkbox]:eq(5)").attr("checked", false);
                $("#art_rtBox input[type=checkbox]:eq(11)").attr("checked", false);
                $("#art_rtBox input[type=checkbox]:eq(12)").attr("checked", false);
                $("[id$=hfReportTypeValue]").val("R_Brochure_C");
            } else {
                $("#art_rtBox input[type=checkbox]:eq(1)").attr("checked", false);
                $("[id$=hfReportTypeValue]").val("R_Brochure_A");
            }
        }
        function ClearAll() {
            $("#art_rtBox input[type=checkbox]").attr("checked", false);
        }
    </script>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
 <div class="fs-webpart-top">
        <RE:EntitySelector ID="commonEntitySelector" runat="server" />
    </div> 
    <br />
    <div style="display:block;" id="art_rtBox">   
    <asp:CheckBoxList RepeatDirection="Horizontal" ID="cblReportType" runat="server"> 
        <asp:ListItem Selected="True" Value="P6">P6</asp:ListItem> 
        <asp:ListItem Selected="True" Value="P3">P3</asp:ListItem>
        <asp:ListItem Selected="True" Value="P7">P7</asp:ListItem>
        <asp:ListItem Selected="True" Value="P8">P8GFC</asp:ListItem>
        <asp:ListItem Selected="True" Value="P9">P9AC</asp:ListItem>
        <asp:ListItem Selected="True" Value="P10">P10TACF</asp:ListItem>
        <asp:ListItem Selected="True" Value="P11">P11QS</asp:ListItem>
        <asp:ListItem Selected="True" Value="P14">P14SR</asp:ListItem> 
        <asp:ListItem Selected="True" Value="P15">P15QSCC</asp:ListItem> 
        <asp:ListItem Selected="True" Value="P16">P16FC</asp:ListItem> 
        <asp:ListItem Selected="True" Value="P22">P22FOC</asp:ListItem> 
        <asp:ListItem Selected="True" Value="P23">P23INV</asp:ListItem> 
        <asp:ListItem Selected="True" Value="P24">P24GAO</asp:ListItem>  
    </asp:CheckBoxList>
        <a href="javascript:ClearAll();">ClearAll</a>
    </div>

    <div style=" display:none;">
        <br />
        <input id="broTP1" type="radio" onclick="BrochureTypeChanged(this);" checked="checked" name="C" value="R_Brochure_C" />
        <label for="broTP1"><span>Consolidation Management brochure Batch export - Commercial</span> </label> 
        <br />
        <input id="broTP2" type="radio" onclick="BrochureTypeChanged(this);" name="C" value="R_Brochure_A" />
        <label for="broTP2"><span>Consolidation Management brochure Batch export - Manufactured</span> </label>  
     
    </div>
    <asp:HiddenField ID="hfReportTypeValue" Value="R_Brochure_A" runat="server" />
    <br />
     
    <asp:Button ID="ExportReport" runat="server" Text="Export Report" OnClick="ExportReport_Click" />
    <br />

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Consolidation Brochure Merge Output
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Consolidation Brochure Merge Output
</asp:Content>
